<?php

namespace App\Repository\Repositories;

use App\Http\Service\OrderService;
use App\Models\StoreOrder;
use App\Repository\RepositoryInterface\OrderInterface;

class OrderRepositories implements OrderInterface
{

    //订单查询
    public function OrderServer($data)
    {
        return OrderService::OrderList($data);
    }

    //订单进行添加
    public function OrderAdd($data)
    {
       return  $data_true = OrderService::OrderAdd($data);
    }

    //对订单进行修改
    public function OrderUpData($id,$data){

        $data_true = OrderService::OrderAdd($data);
    }

    //对订单进行修改

    public function OrderUpData($id, $data)

    {
      return   $data_true = OrderService::OrderUpdata($id,$data);
    }

    //对订单进行删除
    public function OrderDelete($id)
    {
      return   $data_true = OrderService::OrderDelete($id);
    }




    //提货
    public function pickUp($order_id)
    {
        $result = StoreOrder::pickUp($order_id);
    }

}
